package com.software.loginregister.entity.vo;

import java.math.BigDecimal;

public class IngredientDTO {
    private String ingredientName;    // 使用 ingredientName 而不是 name
    private BigDecimal amount;        // 使用 BigDecimal 而不是 Float
    private String unit;

    public IngredientDTO() {
    }

    public IngredientDTO(String ingredientName, BigDecimal amount, String unit) {
        this.ingredientName = ingredientName;
        this.amount = amount;
        this.unit = unit;
    }

    public String getIngredientName() {
        return ingredientName;
    }

    public void setIngredientName(String ingredientName) {
        this.ingredientName = ingredientName;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}
